﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmailSend.aspx.cs" Inherits="lcmyjobs.Web.Admin.EmailSend"  validateRequest="false" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <style type="text/css">
        .style1
        {
            width: 90%;
        }
        .style2
        {
        	width:180px;
        	line-height:35px;
        	text-align:right;
        	
        	}
        .bgbtn
{
    background-image: url('../Images/bgbtn.gif');
    background-repeat: no-repeat;
    width:76px;
    height:27px;
    line-height:27px;
    text-align:center;
    border:0px;
    font-weight:bold;    
    color:#ff6600;
}
    </style>
</head>
<body style=" margin: 30px; font-size:12px; background-color: #ffffff; font-family:arial,"宋体";">
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td class="style2">
                    收件人：</td>
                <td>
                    <asp:Label ID="lbl_receives" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    标题：</td>
                <td>
                    <asp:TextBox ID="txt_title" Width="430" runat="server"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td class="style2">邮件类型：</td>
                <td>
                    <asp:DropDownList ID="ddl_type" runat="server" width="200px" CssClass="inputText3" AutoPostBack="True" OnSelectedIndexChanged="ddl_type_SelectedIndexChanged" validateRequest="false">
                                <asp:ListItem Value="0" Text="填写"></asp:ListItem>
                                <asp:ListItem Value="1" Text="简历填写不完整"></asp:ListItem>
                                <asp:ListItem Value="2" Text="个人注册成功"></asp:ListItem>
                                <asp:ListItem Value="3" Text="简历未刷新" ></asp:ListItem>
                                <asp:ListItem Value="4" Text="投递简历量偏少" ></asp:ListItem>
                                <asp:ListItem Value="5" Text="申请悬赏求职"></asp:ListItem>
                                <asp:ListItem Value="6" Text="申请高级人才" ></asp:ListItem>
                                <asp:ListItem Value="11" Text="单位信息填写不完整" ></asp:ListItem>
                                <asp:ListItem Value="12" Text="单位注册成功" ></asp:ListItem>
                                <asp:ListItem Value="13" Text="单位即将过期" ></asp:ListItem>
                                <asp:ListItem Value="14" Text="申请VIP" ></asp:ListItem>
                                <asp:ListItem Value="15" Text="申请猎头/悬赏职位 " ></asp:ListItem>
                                
                            </asp:DropDownList>
                </td>
            </tr>

            <tr>
                <td class="style2">
                    邮件内容：</td>
                <td>
                    <x:PageManager ID="PageManager1" runat="server" />
                        <x:ContentPanel ID="ContentPanel1" runat="server" BodyPadding="5px" Width="800px"
                        EnableBackgroundColor="true" ShowBorder="true" ShowHeader="true" Title="添加文章">
                        <textarea name="UEditor1" id="UEditor1">
                                        
                        </textarea>
                        </x:ContentPanel>
                    
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btn_send" runat="server" onclick="btn_send_Click" CssClass="bgbtn" Text="发送邮件" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    </form>
    <script type="text/javascript">
               window.UEDITOR_HOME_URL = '<%= ResolveUrl("~/Scripts/ueditor/") %>';
    </script>
    <script type="text/javascript" src="../Scripts/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="../Scripts/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript">
        var editor;
        function onReady() {
            editor = new UE.ui.Editor({
                initialFrameWidth: '100%',
                initialFrameHeight: 350,
                minFrameHeight: 350,
                autoFloatEnabled: false,
                focus: true
            });
            editor.render("UEditor1");
        }


        // 提交数据之前同步到表单隐藏字段
        X.util.beforeAjaxPostBackScript = function () {
            editor.sync();
        };

        // 更新编辑器内容
        function updateUEditor(content) {
            window.setTimeout(function () {
                editor.setContent(content);
            }, 100);
        }
    </script>
</body>
</html>
